def log_decorator(func):
    def wrapper(*args, **kwargs):
        print(f"Calling function {func.__name__}")
        result = func(*args, **kwargs)
        print(f"Function {func.__name__} finished")
        return result
    return wrapper


def add(a, b):
    return a + b


add = log_decorator(add)
result = add(3, 5)
print(result)